home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 6.8 KB | 211 lines | [TEXT/MPS ] |
- #========================================================================================
- #
- # File: ODF Startup
- # Release Version: $ ODF 1 $
- #
- # Copyright: (c) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
- #
- #========================================================================================
-
- # Set the location of the OpenDoc SDK Folder
- # If the folder can't be found; automatically prompts user for it and
- # remember where the folder was found
-
- # FWOpenDocSDK assumes that all the OpenDoc stuff is in one folder. This
- # isn't true for third-party CDs. Therefore we need to migrate to two
- # variables, one for the headers, one for the libraries.
-
- # Backwards compatability for FWOpenDocSDK_Folder
- If `Exists "{PrefsFolder}"FWOpenDocSDK_Folder`
- Set FWOpenDocSDK "`Catenate "{PrefsFolder}"FWOpenDocSDK_Folder`"
- Delete "{PrefsFolder}FWOpenDocSDK_Folder"
- End
- If "{FWOpenDocSDK}" != ""
- Set FWOpenDocInterfaces "{FWOpenDocSDK}Interfaces:"
- Set FWOpenDocLibraries "{FWOpenDocSDK}Libraries:"
- Echo -n "{FWOpenDocInterfaces}" > "{PrefsFolder}FWOpenDocInterfaces"
- Echo -n "{FWOpenDocLibraries}" > "{PrefsFolder}FWOpenDocLibraries"
- Unexport FWOpenDocSDK
- Unset FWOpenDocSDK
- End
-
- # Restore FWOpenDocInterfaces and FWOpenDocLibraries
- If ¬ "{FWOpenDocInterfaces}" && "`Exists "{PrefsFolder}"FWOpenDocInterfaces`"
- Set FWOpenDocInterfaces "`Catenate "{PrefsFolder}"FWOpenDocInterfaces`"
- Set FWOpenDocLibraries "`Catenate "{PrefsFolder}"FWOpenDocLibraries`"
- End
-
- # Verify FWOpenDocInterfaces and FWOpenDocLibraries
- If ¬ "`Exists "{PrefsFolder}"FWOpenDocInterfaces`" || ¬ "`Exists "{FWOpenDocInterfaces}"`" ∂
- || ¬ "`Exists "{PrefsFolder}"FWOpenDocLibraries`" || ¬ "`Exists "{FWOpenDocLibraries}"`"
- Set Exit 0
- Set temp "{Boot}"
- Loop
- Set temp "`(GetFileName "{temp}" -q -d -m "Find the “OpenDoc” folder") ≥ Dev:Null`"
- If ¬ "{temp}"
- Exit
- End
- # Is this the DR4 OpenDoc SDK?
- If `Exists "{temp}Interfaces:"`
- Set FWOpenDocInterfaces "{temp}Interfaces:"
- Set FWOpenDocLibraries "{temp}Libraries:PEF:"
- Echo -n "{FWOpenDocInterfaces}" > "{PrefsFolder}FWOpenDocInterfaces"
- Echo -n "{FWOpenDocLibraries}" > "{PrefsFolder}FWOpenDocLibraries"
- Break
- # Other test for the DR4 OpenDoc SDK
- Else If `Exists "{temp}Handmade:" ≥ Dev:Null` && `Exists "{temp}:Libraries:" ≥ Dev:Null`
- Set FWOpenDocInterfaces "{temp}"
- Set FWOpenDocLibraries "{temp}:Libraries:PEF:"
- Echo -n "{FWOpenDocInterfaces}" > "{PrefsFolder}FWOpenDocInterfaces"
- Echo -n "{FWOpenDocLibraries}" > "{PrefsFolder}FWOpenDocLibraries"
- Break
- # CW8
- Else If `Exists "{temp}Handmade:" ≥ Dev:Null` && `Exists "{temp}::Libraries:OpenDoc:" ≥ Dev:Null`
- Set FWOpenDocInterfaces "{temp}"
- Set FWOpenDocLibraries "{temp}::Libraries:OpenDoc:"
- Echo -n "{FWOpenDocInterfaces}" > "{PrefsFolder}FWOpenDocInterfaces"
- Echo -n "{FWOpenDocLibraries}" > "{PrefsFolder}FWOpenDocLibraries"
- Break
- Else
- Alert “{temp}” isn’t the OpenDoc folder.
- End
- End
- Set Exit 1
- End
-
- Set FWOpenDocInterfaces "`Catenate "{PrefsFolder}"FWOpenDocInterfaces`"
- Export FWOpenDocInterfaces
- Set FWOpenDocLibraries "`Catenate "{PrefsFolder}"FWOpenDocLibraries`"
- Export FWOpenDocLibraries
-
- # {FWODHandMadeIncludes} - The path to the OpenDoc HandMade Includes Folder.
- Set FWODHandMadeIncludes "{FWOpenDocInterfaces}HandMade:"
- Export FWODHandMadeIncludes
-
- # {FWODIDLIncludes} - The path to the OpenDoc Includes Folder.
- Set FWODIDLIncludes "{FWOpenDocInterfaces}IDL:"
- Export FWODIDLIncludes
-
- # {FWODCppIncludes} - The path to the OpenDoc CPlusCPlus Includes Folder.
- Set FWODCppIncludes "{FWOpenDocInterfaces}CPlusPlus:"
- Export FWODCppIncludes
-
- # {FWODPublicUtilitiesIncludes} - The path to the OpenDoc Public Utilities Includes Folder.
- Set FWODPublicUtilitiesIncludes "{FWOpenDocSDK}OpenDoc Utilities:Interfaces:"
- Export FWODPublicUtilitiesIncludes
-
- # {FWODRIncludes} - The path to the OpenDoc RIncludes Folder.
- Set FWODRIncludes "{FWOpenDocInterfaces}Rez:"
- Export FWODRIncludes
-
- # {FWCWCppPPCName} - The name to the CodeWarrior IDE.
- Set FWCWCppPPCName ""
- Export FWCWCppPPCName
-
- ################################################################################
- # Stuff you probably don't want to mess with
- ################################################################################
-
- # {FWLibDir} - The path to the ODF Libraries Folder.
- if ¬ "{FWLibDir}"
- Set FWLibDir "{ODF}"Lib:
- Export FWLibDir
- end
-
- # {FWBinDir} - The path to the ODF Binaries Folder.
- if ¬ "{FWBinDir}"
- Set FWBinDir "{ODF}"Bin:
- Export FWBinDir
- end
-
- # {FWObjDir} - The path to the ODF Objects Folder.
- if ¬ "{FWObjDir}"
- Set FWObjDir "{ODF}"Obj:
- Export FWObjDir
- end
-
- # {FWToolsDir} - The path to other ODF Tools Folder
- if ¬ "{FWToolsDir}"
- Set FWToolsDir "{ODF}"Tools:Mac:
- Export FWToolsDir
- end
-
- # {FWMakefileName} - The Name of FWBuild's MakeFiles
- if ¬ "{FWMakefileName}"
- Set FWMakefileName "MacMake"
- Export FWMakefileName
- end
-
- # {FWMakefileExt} - The extension of FWBuild's MakeFiles
- if ¬ "{FWMakefileExt}"
- Set FWMakefileExt ".bmk"
- Export FWMakefileExt
- end
-
- # {FWTempDir} - The Location for FWBuild's temporary files
- if ¬ "{FWTempDir}"
- Set FWTempDir "{MPW}"
- Export FWTempDir
- end
-
- # {FWTempExt} - The extension for FWBuild's temporary files
- if ¬ "{FWTempExt}"
- Set FWTempExt ".tmp"
- Export FWTempExt
- end
-
- # {FWAutoTargets} - The name of the auto-targets file
- if ¬ "{FWAutoTargets}"
- Set FWAutoTargets "{FWToolsDir}"autotarg.txt
- Export FWAutoTargets
- end
-
- # {FWPreMake} - The name of FWBuild's Premake file
- if ¬ "{FWPreMake}"
- Set FWPreMake "{FWToolsDir}"MacMake.dfn
- Export FWPreMake
- end
-
- # {FWPostMake} - The name of FWBuild's Premake file
- if ¬ "{FWPostMake}"
- Set FWPostMake "{FWToolsDir}"MacMake.rul
- Export FWPostMake
- end
-
- # {ODFDev} - The name of the Fodler Containing ODF
- if ¬ "{ODFDev}"
- Set ODFDev "{ODF}:"
- Export ODFDev
- end
-
- # {CFM68KLibraries} - Directory that contains CFM-68K static link libraries.
- if ¬ "{CFM68KLibraries}"
- Set CFM68KLibraries "{MPW}Libraries:CFM68KLibraries:"
- Export CFM68KLibraries
- end
-
- # {SharedLibraries} - Directory that contains "fat" PEF-format import libraries.
- if ¬ "{SharedLibraries}"
- Set SharedLibraries "{MPW}Libraries:SharedLibraries:"
- Export SharedLibraries
- end
-
- # {FWSOMIncludes} - The path to the SOM Includes Folder.
- Set FWSOMIncludes "{MPW}Interfaces:SOMIncludes:"
- Export FWSOMIncludes
-
- # {FWBldType} - Should be either "Debug" or "Release". -- [sfu]
- # ("Debug" by default. Override this value in your "Build" script if needed.)
- Set FWBldType "Debug"
- Export FWBldType
-
- # {Commands} - Directories to search for commands.
- Set Commands "{FWToolsDir},{Commands}"
- Export Commands
-
- # Useful aliases for MPW based builds
-
- Alias FWBuildDebugCW '"{FWToolsDir}FWAsBuildCW" && SendAE -t "FWAsBuildCW" -m 1 -e odf_ball ----- "[1,1,1]"'
- Alias FWBuildReleaseCW '"{FWToolsDir}FWAsBuildCW" && SendAE -t "FWAsBuildCW" -m 1 -e odf_ball ----- "[0,1,1]"'
-
-